package lemon2.dao.jutil;

import lemon1.util.JDBCUtils;
import lemon3.dao.Customer;
import lemon3.dao.CustomerDAOImpl;

import java.io.IOException;
import java.sql.Connection;
import java.sql.Date;
import java.sql.SQLException;

public class CustomerDAOImplTest {
    public static void main(String[] args) throws SQLException, IOException, ClassNotFoundException {
        CustomerDAOImpl customerDAO = new CustomerDAOImpl();
        Connection connection = JDBCUtils.getConnection();
        Customer customer = new Customer(21, "姚杰", "293755233@qq.com", new Date(35485451848L));
        Date maxBirth = customerDAO.getMaxBirth(connection);
        System.out.println(maxBirth);
    }
}
